fixed generateRandomBoard