Fix bug when user releases mouse button outside board.