Changed code to make use of Vector2D class, added +=, -=, *=, /= overloaded operators to Vector2D