public static void gRepaint() {
        if (controls != null)
            GUI.controls.canvas.repaint();
        if (player.graph != null)
            player.graph.canvas.repaint();
        if (layeredPane != null)
            GUI.layeredPane.repaint();
    }