In this puzzle game, each level features several snakes that need to escape in specified directions. However, they cannot run into each other, and they can only move forward in the direction their heads are facing. Your task is to tap the snakes' heads in the correct order, ensuring all of them escape safely without colliding.