HTML5 canvas grid event system to help with tile games