Added collision detection for turns.