code: def random_board(max_x, max_y, load_factor):
      
      return dict(((randint(0, max_x), randint(0, max_y)), 0) for _ in
                  xrange(int(max_x * max_y / load_factor)))
docs: Return a random board with given max x and y coords.