Updated handle_collisions definition to iterate through vector of pointers to type Ship