Updated UberAgent.java with the newest heuristic

Use ./runScript to run the UberAgent.class file