public void render(Screen screen) {
        if (!level.getTile(x, y - 1).isWall()) {
            sprites.rotate(Math.PI / 2 * 0, true);
            screen.draw(sprites, x, 0, y, this);
        }
        if (!level.getTile(x + 1, y).isWall()) {
            sprites.rotate(Math.PI / 2 * 1, true);
            screen.draw(sprites, x, 0, y, this);
        }
        if (!level.getTile(x, y + 1).isWall()) {
            sprites.rotate(Math.PI / 2 * 2, true);
            screen.draw(sprites, x, 0, y, this);
        }
        if (!level.getTile(x - 1, y).isWall()) {
            sprites.rotate(Math.PI / 2 * 3, true);
            screen.draw(sprites, x, 0, y, this);
        }
        renderSprites(screen);
    }