Corrected error in onLineAtX() - changed y = mx - b to y = mx + b