Implemented timer and pause menu, including pause overlay and edge cases.