Create src/engine.py

first attempt.. needs to clear some confusion around hex values.