Finished first draft of game logic