implemented pause menu. still a little buggy