the core code of game flood puzzle.