Finish game functionality.