REA toy robot exercise...now in Java!