Removed duplicate entity code and fixed cooperative PSO which wasnt being initialised correctly.