Develop an algorithm for goal finding robot using reinforcement learning