Changed algorithm for getting prizes