stop using undefined to quit the game