public Texture loadTexture(String filename) {
        String[] splitArray = filename.split("\\.");
        String ext = splitArray[splitArray.length - 1];

        try {
            int id = TextureLoader
                    .getTexture(
                            ext,
                            new FileInputStream(new File("./res/textures/"
                                    + filename))).getTextureID();

            return new Texture(id);
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }

        return null;
    }