Idea basica del lottery implementada. Tira segm fault