private void myRepaint() {
        Graphics2D graphics = (Graphics2D) canvas.getBufferStrategy().getDrawGraphics();
        graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, //Enable antialiasing
                        RenderingHints.VALUE_ANTIALIAS_ON);
        
        if (keys[0]) { yDraw -= MOVE_SPEED; }
        if (keys[1]) { yDraw += MOVE_SPEED; }
        if (keys[2]) { xDraw -= MOVE_SPEED; }
        if (keys[3]) { xDraw += MOVE_SPEED; }

        graphics.setColor(Color.WHITE);
        graphics.fillRect(0, 0, 800, 600);
        viewMap.drawMap(graphics, xDraw, yDraw);
        
        if(graphics != null) { graphics.dispose(); }
        canvas.getBufferStrategy().show();
        Toolkit.getDefaultToolkit().sync();
    }