Stop shapes from going beyond the bounds of the board