Shell game written in TypeScript