Need game piece to auto-deselect after moving I need a selected game piece to be automatically deselected after being moved, (as opposed to being deselected when selecting the next piece.)

Current Script

The reason I need this change is because: after a piece is moved, it will move again, and again, as many times as a new tile is selected. If a player tries to rotate the board and does not click completely off the board in empty space to deselect, then the piece moves when it shouldn't.
To line 46 add the lines (indented to match line):

deselect_piece(cont.owner['activeTile'])
cont.owner['activeTile'] = None