Added unique ID and reward calculation to end page