// Get the current facing direction as a lower-case string
FacingDirection direction = state.getFacingDirection();
String directionString = "-" + direction.name().toLowerCase(((Applet) getStage()).getLocale());
HorizontalState h = state.getHorizontalState();
VerticalState v = state.getVerticalState();
OtherState o = state.getOtherState();
// Count how long since we turned
if (lastDirection != direction) {
turnCount = 0;