Canvas game implementation.