first working game
finished game logic