Messing around with TypeScript/JavaScript game stuff.