implemented sameContent and fillBoard via String