pile.cc, board.cc, tile.cc and city.cc partial implementation