finished reflex agent part of project 2