Underlying stuff for the Snake and Tron game I'm writing.