ADD script for swapping coordinates in entities collection