Finish functionality of game