Some fixes.

Fixed copy constructor (stack).
Fixed checkRow/2.
Bug fixed.