Changed the colors of tiles.
Changed mode button text.
Refactoring JS code.