Update MainLoop.java

remove unnecessary code