roll function for labyrinth "3D"