fix bugs in Board#leaves