still working on end game logic