- added decision functions for each condition
- got started on core logic