When selecting a new piece, take into account the relative position of
the mouse cursor.