Short for Good Game, Nice Hand and Well Played.
GG is short for Good Game, NH for Nice Hand and WP for Well Played. They are used in online chat. At a live table, people say them out loud. Example. After losing a hand, sending "nh" to your opponent means "nice hand." It is a polite greeting and has nothing to do with the decision of who won or lost.