Added function to check for game running.