public ProBotGame() {
		//For JFrame
		super("ProBot");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setResizable(false);
		
		this.upgradeManager = new UpgradeManager();
		
		this.menuManager = new MenuManager(this);
		this.gui = new Gui(this);
		
		this.canvas = new GameCanvas(this);
		add(this.canvas, BorderLayout.CENTER);
		windowSize = new Dimension(1280, 960);
		setSize(new Dimension(getWindowSize().width+6, getWindowSize().height+29)); //plus the border size so windowSize is the Resolution of the Game
		setVisible(true); 
		canvas.createBufferStrategy(2);
		
		GameChrono chrono = new GameChrono(this.canvas, this);
		new Timer(16, chrono).start(); // 20 fot 50MHz, 16 for 60MHz
		
		addKeyListener(this);
				
		this.menuManager.showMainMenu();
		
		this.setFocusable(true);
		this.requestFocus();
	}