private void render() {
        BufferStrategy strategy = getBufferStrategy();
        if (strategy == null) {
            createBufferStrategy(2);
            return;
        }
        Graphics2D graphics = (Graphics2D) strategy.getDrawGraphics();
        graphics.setColor(Color.BLACK);
        graphics.setFont(font);
        graphics.fillRect(0, 0, getWidth(), getHeight());
        for (int y = 0; y < 5; y++){
        	for (int x = 0; x < 10; x++) {
        		_bricks[x][y].update();
        		_bricks[x][y].draw(graphics);
        		if (_bricks[x][y].getOn() && _ball.bounce(_bricks[x][y].getRect(), false))
        			_bricks[x][y].setOn(false);
        	}
        }
        _ball.update();
        _ball.bounce(_paddle.getRect(), true);
        _ball.draw(graphics);
        _paddle.update();
        _paddle.draw(graphics);
        graphics.dispose();
        strategy.show();
    }