Tile Based Games

Can somebody give me some tips on how to make a gameboard like http://www.kdice.com. I need to make a map with territories that change color and have borders. Any tips would help.