Add method for perfect game and corresponding test.