updated messages and behavior manager as well as implemented an algorithm class