https://github.com/codewmax/neat-chrome-dinosaur/blob/169846d256d570b8141d4192f5b8739c52bdb634/main.py#L136 I Think you should move that line up before appending the genome to the List