BoardValue Function Written