Implements rudimentary game logic

Requires testing