Hard work pays off with win for Rockets