Completed basic functionality of the game