implementing compTurn
implementing compTurn