private boolean collision(Rectangle future, Rectangle[] walls){
        for(int i = 0; i< walls.length; i++){
            if(future.intersects(walls[i])){
                return true;
            }
        }
        return false;
    }