added lines to corner struct and points to line struct and changed the repeated corner, keeping the ones with more points