Update Engine/src/event/CubeTree.java

CubeTree, fix logic bug