The error was in my graduate work which was about game development.I broadcast some messages to the objects(custmers) registered as Observer who would have different behavior when they received the same message,which is also called Observer Pattern.…