Similar Items: Physics-Inspired Hamiltonian Particle Swarm Optimisation for Multi-Agent Movement