- Added the prevPositions

- Tried using a different approach to recognize person's direction