GG stands for "good game," and is meant to be a sign of good sportsmanship in online games. By saying "GG" at the end of a match, you're signaling both that you enjoyed the game and that your opponent put up a good fight. Consider it the online equivalent of shaking your opponent's hand after a real-life game.