Improving the solution of favdice.