plus properly seeding math/rand and swapping the chars used for grid to better match black/white from canonical example.