pso function and play_file for multitensor (lots of experimentation garbage)