Making all directions stop at pitch boarder