@Override
    public Command planNextMove(Info info) {
      
       if(info.getEnemies().isEmpty()==false)
       {
       int e_x = info.getEnemies().get(0).getX(); 
       int e_y = info.getEnemies().get(0).getY();
       int pomx,pomy,pomx1,pomy1;
       int pos =0;
       for(int i=1;i<info.getEnemies().size();i++){
           pomx  =(info.getEnemies().get(i).getX()-info.getX());
           if(pomx<0)
               pomx *=-1;
           pomx1 = e_x -info.getX() ;
            if(pomx1<0)
               pomx1 *=-1;       
           pomy  =(info.getEnemies().get(i).getY()-info.getY());
           if(pomy<0)
               pomy *=-1;
           pomy1 = e_y -info.getY() ;
            if(pomy1<0)
               pomy1 *=-1; 
           if(pomx< pomx1 && pomy < pomy1)
           {
               e_x = info.getEnemies().get(i).getX();
               e_y = info.getEnemies().get(i).getY();
               pos = i;
           }
       }
       
       
           int angle =0;
            e_x = info.getEnemies().get(pos).getX();
            e_y = info.getEnemies().get(pos).getY();
           angle = getAngle(info,e_x,e_y);
           if(Check(info))
           {   
               // if(greenade(info, angle))
               // {
                  return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_RIGHT,angle , CommandType.SHOOT);           
           /* }
                else
              {
                    return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_RIGHT, 5 , CommandType.SHOOT);  
                }*/
           }
            else
            {
                return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_RIGHT, (angle+180) , CommandType.NONE);           
            }
        }
       else
       {
           return new Command(CommandType.NONE, CommandType.NONE, 0 , CommandType.NONE);
       }
       
            
           
     
         
    }