Simple dice game with nested conditionals and functions.