Made OOP changes for tile creation