private void startGame(){
		//starts the mechanics iterator
		gameServer = new Server();
		gameServer.run();
		
		ObjectInputStream objInStream = null;
		try{
			//wait for the server to settle
			Thread.sleep(1000);
			
			//initialize tcp connection
			sock = new Socket("localhost", 1337);
			//set receive buffer size
			sock.setReceiveBufferSize(512);
			
			objInStream = new ObjectInputStream(sock.getInputStream());
			
			clientReader = new ClientStreamReader(objInStream);
			
			//renders game data
			gameRender = new GameRender();
			gameRender.gameRender(sm, clientReader);//This is the render game loop!
			
			//END GAME CODE STARTS NOW//
			
			//end the reader
			clientReader.running = false;
			
			//game close down code
			sock.close();
			
		} catch (Exception e){
			e.printStackTrace();
		}
		
		//end server
		gameServer.stop();
		
	}