private void checkAllCollsions() {
        try {
            for (Projectile pj : projectiles) {
                pj.update();
                for (Player pl : players) {
                    if (!pl.getName().equalsIgnoreCase(pj.getPlayername())) {
                        if (pl.isAlive()) {
                            pj.checkCollision(pl);
                        }
                    }
                }
            }
        } catch (ConcurrentModificationException e) {
            checkAllCollsions();
        } catch (NullPointerException e) {
            checkAllCollsions();
        }
    }