game representation and generation of random boards