Final Version for school, added Pause Button and resume function