fixed up some stuff and broke a few things. Lines (using quadratic function) work now. Line s still don't separate though

Signed-off-by: Anton Chan <antoniuschan99@gmail.com>