Switched to hash in rote learner, fixed bug with moving pieces