Fixed a plethora of BOF issues. Fixed Lua stack memory leakage/BOF. Game operates correctly again.