Winning lines implementation