I just replaced the if-else chain with a switch statement and changed autonomousID from a String to an Integer, because the JDK doesn't support strings in switches.