public void renderLevel(Graphics2D g2)
    {
        for (Sprite level : game.getGUIButtons().values())
        {
            if (level.getSpriteType().getSpriteTypeID().contains(LEVEL_BUTTON_TYPE))
            {
//                level.setState(pathXTileState.UNSUCCESSFUL_STATE.toString());
                SpriteType sTLevel = level.getSpriteType();
                Image img = sTLevel.getStateImage(level.getState());
                Viewport viewport = ((pathXMiniGame)game).getMapViewport();
                if (level.getY() <= 50)
                    level.setEnabled(false);
                else
                    level.setEnabled(true);
                g2.drawImage(img, (int) level.getX(), (int) level.getY(), sTLevel.getWidth(), sTLevel.getHeight(), null);
                if (level.containsPoint(data.getLastMouseX(), data.getLastMouseY()) &&
                    !level.getState().equals(pathXTileState.LOCKED_STATE.toString()))
                {
                    g2.setFont(FONT_TEXT_DISPLAY);
                    g2.drawString(((pathXTile)level).getName(), 500, 520);
                }
            }
        }
    }