public void setTexture(Path path, IntRect position) {
                try {
                        texture.loadFromFile(path,position);
                        setTilePosition(position);
                } catch (IOException e) {
                        e.printStackTrace();
                }
        }