refactored to have board find the values of its squares rather than the cpu