Don't draw lines beyond the end of the board.