Updated GameObjects to use Vector2D class