TIL String comparison in Java. Should fix mode changing