Finished functional version of game