public Texture getTexture(String tex) {
        if(!textures.containsKey(tex)) {
            try {
                loadTexture(tex);
            } catch(Exception e) {
                System.out.println("Couldn't create texture!");
            }
        }
        
        return textures.get(tex);
    }