change val_piece_side() first argument to take a char.