sorted out the greed game