Adds pause boolean and initializes it
Adds pause funcionality