public void initialize(Canvas s, ViewRefresher v)
    {
        viewRefresher = v;
        screenCanvas = s;
        screenCanvas.createBufferStrategy(2);
        buffer = screenCanvas.getBufferStrategy();
        
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice gd = ge.getDefaultScreenDevice();
        gc = gd.getDefaultConfiguration();
    }