Flag states and game end.