added pausing via spacebar