Using Tile Masks to Set a Tile's Type Based on Its Surrounding Tiles