passing a Board object into the recursive function