It's impossible to build a boat (or a space ship!) big enough to escape God's wrath. Obedience alone didn't save Noah. Grace alone didn't save him either. God's grace provided him with a means of escape. Obedience enabled him to make the escape good.