lines--Solved the weird line problem upon reset!

Just needed a simpler method for calculating the rotation angle.