Maze Game functional