Tiles

I tested my code and it seems to be working. I still need to add more documentation, but I'm too tired to do it now.