Pro HTML5 Game chapter 2