fixed some bugs, start of implementing endless line
Implemented endless line