Prevented pieces from rotating if they will collide with side of board