Practicing HTML canvas and OO JS with the classic game Snake