/// <summary>
 /// Checks for a random enemy in range if the unit was in another position
 /// </summary>
 /// <param name="unit">The unit from where to look from</param>
 /// <param name="fromX">The X coordinate of the supposed position</param>
 /// <param name="fromY">The Y coordinate of the supposed position</param>
 /// <returns>A random unit in range or null if there are no units in range</returns>
 protected Unit enemyInRange(Unit unit, int fromX, int fromY)
 {
     foreach (var enemyUnit in MatchManager.EnemyUnits(unit))
     {
         if (Utils.MahnattanDistance(fromX, fromY, enemyUnit.CellPosition.x, enemyUnit.CellPosition.y) <= unit.AttackRange)
         {
             return(enemyUnit);
         }
     }
     return(null);
 }