Man loses both legs and five fingers after playing with his dog