used the css method to change the color of the tile