slight tweak to deleteLine function to avoid letting activeLine go out of bounds