fixed bug with too little bricks generated in random