picking random legal move