Canvas implementation of classic 'snake' game