added pausing functionality, p to pause, space to unpause, a bit hacky but can't figure out how to fix atm