Added methods to check for winner and to randomize tiles.