Finished game code