Added getIntRowFromCharRow and isTileValid functions