Added endgame, problem generation,  movement