WIP Getting the line intersection algorithm working