Update logicEngine.java