Fixed bug in path planning

swapped width and height.  In calculating policy section, changed the
AND condtion to OR condtion in while loop which checks whether inital
positon is reached or not. Added a pseudocode to return the required
array to the bot