Detect empty board and reseed if needed. Fix #3.