got basic line position logic working
basic position logic working