fix whoopses
clear environment, use random board