Lotto: refactor draw ticket and clean code