added a boardRepresentation helper class