Logo interpreter in java