Big refactoring.
Added random player.