bufferStrategy = canvas.getBufferStrategy();
keyboard = new SimpleKeyboard();
canvas.addKeyListener(keyboard);
mouse = new SimpleMouse();
canvas.addMouseListener(mouse);
canvas.addMouseMotionListener(mouse);
SimpleImage.setGraphicsConfiguration(canvas.getGraphicsConfiguration());