Used Observer Pattern for the bombsCount problem