gameLoop now checks for winner

Also refactored the capital out of the getWinner method