public ArrayList<String> getUsers() throws Exception
	{
		// System.out.println(super.mathGame.getCursor());
		
		@SuppressWarnings("unused")
		String gameType; //TODO The variable is initialized but never used
		
		if (mathGame != null) {
			gameType = mathGame.getTypeManager().getType().toString().toLowerCase();
		}
		else {
			gameType = "integers";
		}
		
		try {
			statement = connection.createStatement();
			resultSet = statement.executeQuery("select * from sofiav_mathgame.online_users");
			
			while (resultSet.next()) {
				onlineUsers.add(resultSet.getString("Name"));
			}
			
			// writeResultSet(resultSet);
			
			for (int i = 0; i < onlineUsers.size(); i++) {
				System.out.println(onlineUsers.get(i));
			}
			
			return onlineUsers;
		} catch (Exception e) {
			// System.out.println("SQLException: " + e.getMessage());
			
			if (e.getMessage().equals("No operations allowed after connection closed.")) {
				if (!mathGame.getMySQLAccess().connect()) {
					throw new Exception("couldn't connect");
				}
				else {
					System.out.println("CONNECTED ONCE AGAIN");					
					GameManager.getMatchesAccess().reconnectStatement();
				}
			}
			throw e;
		}
	}