public void PrepareEngine(String name, short width, short height, short tolerance, boolean enableClosing)
	{
		//Setting the variables
		SCREEN_WIDTH = (short) (width + SCREEN_OFFSET_X);
		SCREEN_HEIGHT = (short) (height + SCREEN_OFFSET_Y);
		CANVAS_WIDTH = SCREEN_WIDTH;
		CANVAS_HEIGHT = SCREEN_HEIGHT;
		CANVAS_TOLERANCE = tolerance;
		
		//Defining the game frame
		gameFrame = new JFrame(name);
		gameFrame.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
		
		if (enableClosing == true)
		{
			gameFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		}
		else
		{
			gameFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		}
		
		
		gameFrame.setLayout(null);
		gameFrame.setResizable(false);
		gameFrame.setLocationRelativeTo(null);
		
		//Defining and adding the game canvas
		gameCanvas = new Canvas();
		gameCanvas.setBounds(-(CANVAS_TOLERANCE/2), -(CANVAS_TOLERANCE/2), CANVAS_WIDTH + CANVAS_TOLERANCE, CANVAS_HEIGHT + CANVAS_TOLERANCE);
		gameCanvas.setIgnoreRepaint(true);
		gameCanvas.addKeyListener(objInputManager);
		gameCanvas.addMouseListener(objInputManager);
		gameCanvas.addMouseMotionListener(objInputManager);
		gameFrame.add(gameCanvas);
		
		//Creating the game camera
		gameCamera = new GO_Camera(this, 0, 0);
		
		//Setting the frame to be visible
		gameFrame.setVisible(true);
		
		//Creating the game buffer strategy
		gameCanvas.createBufferStrategy(2);
		gameBuffStrat = gameCanvas.getBufferStrategy();
		

	}