Update value in map based on Enum.member? check

Check out Enum.reduce