Process to end game