Improvements to the boilerplate canvas game framework