started adding some end game logic for movement