This is a simple maze game. The algorithm chooses a random starting point and random directions and continues till it reaches any end of horizontal axis.