common_scoring function created

common_scoring function created for all pieces. Fix to character
representation of white and black when in console/debug. Fix to
king_value non-assignment error in in_check.