added utility functions to check collisions in turns