check next environment for game over flag