add rowOffset and colOffset to straight object and improve addNewChip function