Unable to move in a certain direction detection