Solved by tom in post #2 
              
              
                First thing, good job to simplify the stuff you find on the internet. I often do this, too, when I need to look at code from others. 
You are not using the same weights with this. The random init for the second will be different than the one for the first because you not re-seeding after instiatiati…