public void checkForAllCollisions(Collection<Entity> entities) {
        for (Entity e1 : entities) {
            for (Entity e2 : entities) {
                if (!(e1.type == EntityType.ENTITY_WALL && e2.type == EntityType.ENTITY_WALL) && !e1.equals(e2)) {
                    if (existsACollisionBetween(e1, e2)) {
                        handleCollision(e1, e2);
                    }
                }
            }

        }
    }