Partial functionality for tiled HTML5 rpg game