private void OnDrawGizmos()
 {
     if (Application.isPlaying)
     {
         // Drawing the grid. Using the different function because Unity have some specific functions for specific events. Can't be called in OnUpdate method.
         grid.DebugTiles(transform.position, target.position);
     }
 }