public void game() {
		/* Update the game as long as it is running. */
		while (canvas.isVisible() && !restart && !player.isLevelCompleted()) {
			if (!pause) {
				/*If the player have lives left and have not won*/
				if((player.getNumLives() > 0) && !(player.getWon())) {
					updateWorld();	// Update the world
				}
			}
			paintWorld();	// Paint the game world
			try { 
				Thread.sleep(BreakoutCanvas.FRAME_DELAY);		// Wait a given interval.
			} catch (InterruptedException e) {
				// Ignore.
			}
		}
		
		return;
	}