public Point collisionDetection(Rectangle hitbox) {

        collisionData.clear();
        Rectangle copy = (Rectangle) hitbox.clone();
        for (int i = 0; i <= 40; i++) {
            for (int j = 0; j <= 24; j++) {

                if (tiles[i][j] == Tiles.WALL) {

                    Rectangle temp = new Rectangle(i * 20, j * 20, 20, 20);
                    if (copy.intersects(temp)) {

                    }
                }
            }
        }
        return copy.getLocation();
    }