reworked engine

- turned engine into library
- added rpg elements for demo / example