fixed class function call by adding self to the call list and added the
target_xy array declaration which was missing.