if statement reduction in ROT_GUI.java