Refactoring and tokens
Token selection, hover hilights, and move path plotting.