private void doMode(HttpServletRequest request, HttpServletResponse response){
		HttpSession session = request.getSession();
		String out = null;
		if(session.isNew() || session.getAttribute("us") == null){
			Utility.users +=1;
		    UserSession us = new UserSession(Utility.users, 0, "Guest #" + (Utility.users));
		    session = request.getSession();
		    session.setAttribute("us", us);
		    out = ((UserSession)session.getAttribute("us")).getUserName();
		}
		else{
			UserSession us = (UserSession) session.getAttribute("us");
			out = us.getUserName() + "-You have already initiated";
		}
		
		if(request.getParameter("mode").equals("new")){
			UserSession us = (UserSession) session.getAttribute("us");
			if(us.table != null) {out += "<br>You have already joined Table#"+ Utility.razzTables.indexOf(us.table);}
			else if(Utility.razzTables.size() <= Utility.MAX_TABLES ){
				RazzTable rt = new RazzTable();
				rt.statusList.add("Game Initiated " + new Date());
				Player p = new Player();
				p.setNickName(us.getUserName());
				int pid = rt.addPlayer(p);
				int tid = Utility.addTable(rt);
				
				us.isTableCreator = true;
				us.table = rt;
				us.player = p;
				us.setPlayerId(pid);
				us.setTableId(tid);
				session.setAttribute("us", us);
				session.setAttribute("showList", false);
			}
			else{
				out += "<br>Tables full Please join ongoing table";
			}
		}
		else if(request.getParameter("mode").equals("join")){
			session.setAttribute("showList", true);
		}
		
		else if(request.getParameter("mode").equals("exit")){
			session.setAttribute("showList", false);
			UserSession us = (UserSession) session.getAttribute("us");
			if(us.table == null){out += "<br>You have no ongoing game to exit";}
		}
		
		print(response, out);
	}