Fixed weird bug, but there is trouble learning XOR now