Finished function which tests the changing robots