fixed bug and added tilemap example