This reminds me very much of this game: http://en.wikipedia.org/wiki/Angel_problem Abusive comment hidden. (Show it anyway.)