public List <List <ShipPoint> > GetEnemyShips() { var returnList = new List <List <ShipPoint> >(); var enemyShips = _shipRepo.GetShips(GetEnemyPlayer()); foreach (var ship in enemyShips) { var pointList = new List <ShipPoint>(); pointList.AddRange(ship.ShipPieces.Select(sp => new ShipPoint(ship.Id, sp.Id, sp.PosX, sp.PosY, sp.IsHit, sp.IsMissed))); returnList.Add(pointList); } return(returnList); }