added text on top of tiles
minor refactoring