prototype of canvas game