@Override
    public void run(){
        try{
            while(true){
                move();
                for(int i = 0; i < shots.length; i++){
                    
                    if(shots[i] != null){
                        shots[i].moveShot(id);
                        shots[i] = GameFrame.checkShots(shots[i], id);
                    }
                    if(shots[i] != null){
                        if(shots[i].getX() > 1200 || shots[i].getX() < 0 || 
                                shots[i].getY() > 800 || shots[i].getY() < 0){
                            shots[i] = null;
                        }
                    }
                }
                Thread.sleep(5);
            }
        }catch(Exception e){System.err.println(e.getMessage());}
    }