refactored levels to be json files.
refeactored some tile property check code.