how to design a scene based game

Now i am writing a Tiles and scene based game.And in different scene, the condition whether game achieve over is different.So i found it difficult to abstract a method isGameOver(), and now i put this method in the script written by beanshell, a script language can be easily embedded into java.Therefore every scene’s script must contain the concrete implemention of isGameOver() and i think it a bad and dirty way…
Anybody has a better idea??I am a newbie game developer so i dont know the common solution.
Thanks very much!

I guess Interfaces is the thing, you should take a look at.

Separate the representation of player challenges from the scenes.

For example you could have a list of uncompleted tasks. When that list is empty, the game is over. Or construct some other representation of game state.