create the draw lot functionality