several board generation bugs fixed