Fixed issue #6, also changed name lengthOfPieceLineY to Z
Experimenting with some stuff for issue #3