Almost working

Game doesn't end correctly, though.