Added logic to take computers turn.