Can deselect a chip by clicking on it again, changed the order in process such that check if moves are availabled before passing the control to manual player