refactored some funcitons to be in-class fun
value = board_temp.leaf_value() is having 'int' object not callable error