added ability to pause game