Set up games ending action.