Implementing game logic

Not yet complete