Snake game and TypeScript HW