public void render(String usr) {

		window.setSize(1035,790);
		window.setLayout(new BorderLayout());
		
		window.setLocationRelativeTo(null);
		window.setResizable(false);
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		window.setBackground(Color.DARK_GRAY);

		JPanel gamePane = new JPanel(new BorderLayout());
		gamePane.setPreferredSize(new Dimension(1035, 550));
		gamePane.setBackground(Color.BLACK);

		JPanel gameInfo = new JPanel(new BorderLayout());
		gameInfo.setPreferredSize(new Dimension(200,550));
		gameInfo.setBackground(Color.gray.darker());
		gamePane.add(gameInfo, BorderLayout.EAST);
		
		
		
		Font font = new Font("Helvetica", Font.BOLD, 12);
		gameName.setFont(font);
		gameName.setEditable(true);
		gameName.setBackground(Color.gray.darker());
		gameName.setForeground(Color.WHITE);
		
		
		JPanel buttons = new JPanel();

		leaveGame = new JButton("Leave");
		leaveGame.setFont(font);
		leaveGame.setBackground(Color.gray.darker());
		leaveGame.setActionCommand("kick");

		startGame = new JButton("Start");
		startGame.setFont(font);
		startGame.setBackground(Color.gray.darker());
		startGame.setActionCommand("startButton");

		buttons.setBackground(Color.gray.darker());
		buttons.add(startGame);
		buttons.add(leaveGame);
		
		gameInfo.add(buttons, BorderLayout.SOUTH);
		gameInfo.add(gameName, BorderLayout.NORTH);

		
		JPanel gameCointainer = new JPanel();
		gameCointainer.setBackground(Color.DARK_GRAY.darker());
		gameCointainer.setBorder(new EmptyBorder(30,30,0,0));
		
		ImagePanel gameBoard = new ImagePanel();
		gameBoard.setLayout(new GridLayout(3,3));
		


		gameBoard.setBorder(new EmptyBorder(10,10,10,10));
		
		
		game[0] = a1;
		game[1] = a2;
		game[2] = a3;
		game[3] = b1;
		game[4] = b2;
		game[5] = b3;
		game[6] = c1;
		game[7] = c2;
		game[8] = c3;
		
		
		a1.setName("a1");
		a2.setName("a2");
		a3.setName("a3");
		b1.setName("b1");
		b2.setName("b2");
		b3.setName("b3");
		c1.setName("c1");
		c2.setName("c2");
		c3.setName("c3");
		

		for(int i =0; i<game.length; i++){
			gameBoard.add(game[i]);
			game[i].setPreferredSize(new Dimension(150, 150));
			invisibleButton(game[i]);
			
		}

		gameCointainer.add(gameBoard);
		gamePane.add(gameCointainer);

		window.add(gamePane, BorderLayout.NORTH);
		chat = new ChatGUI(usr);
		chat.render(chatPanel, window);


		window.setVisible(true);
		window.validate();

	}