made entity creation tile based, added building.js, fixed a movement bug