Refactored model to use Vector2D instead of point. Also made the AIplugin move almost as it should.