Implementation of pause subroutine: the step of the snake