Implement cpu turn