added endgame; game works/is playable