implemented seed generation from board and wrote test for it