changed x,y coor. Understood the the direction is down or right depeneding on the orientation