public void EndTurn() { var units = gameViewModel.ControllingPlayer.Units.Where(unit => unit.IsAlive && !unit.HasMoved); foreach (var unit in units) { var unitPos = gameViewModel.GetPositionOfUnit(unit); var gameMove = new GameMove(unitPos, unitPos, GameMove.GameMoveType.Wait); gameViewModel.ApplyMove(gameMove); } }