added functionality to display either empty or mine