public void render(Screen screen) {
        if (level.getTile(x, y - 1) == EmptyTile.instance) {
            sprites.rotate(Math.PI * 2 * 0.5, true);
        } else if (level.getTile(x, y + 1) == EmptyTile.instance) {
            sprites.rotate(Math.PI * 2 * 0.0, true);
        } else if (level.getTile(x - 1, y) == EmptyTile.instance) {
            sprites.rotate(Math.PI * 2 * 0.25, true);
        } else if (level.getTile(x + 1, y) == EmptyTile.instance) {
            sprites.rotate(Math.PI * 2 * 0.75, true);
        }
        super.render(screen);
    }