checks to protect the piece from overflowing th board if it is rotated near the vertical edges of the board