Maze Ball Game

Your friend Yulianna Karaulova, likes to play maze ball game. You are going make a DIY project to build a maze ball game. Making maze game is very easy. Generally there is a maze and some holes might be in the maze(the exit point). There is a ball inside the maze that can move left, right, top and bottom depending on which side of the maze is lower because of gravity. Once a ball fell in a hole, it will never comes out regardless of the tilt position. In this problem, there will be some moves and your task is to tell whether the player will be able to put the ball inside the hole.


This is a companion discussion topic for the original entry at https://toph.co/p/maze-ball-game