public void checkProjectileCollisions() {
        for (Projectile p : projectiles) {
            
            //projectile to wall collisions
            boolean tmp[] = check.checkWallCollisions(p);
            for (int i = 0; i < 4; i++) {
                //mahdollista muuta käyttöä myöhemmin
                if(tmp[i]==true)
                p.destroy();
            }
            
            //projectile to ship collisions
            for (Ship ship : ships) {
                if (check.checkProjectileToShipCollisions(p, ship)) {
                    if(p.getTeam()!=ship.getTeam()){
                    p.destroy();
                    ship.changeHp(-p.getPower());
                    }
                }
            }
        }
    }