Work on java VM, need to rething get/set val, possibly move into separate class due to getNextWord getting called too many times with the naive implementation I currently have.
Possibly store last two getNextWords? reset on op?