added some logic to the computer moves.