fixed boardMark function