Behavior fixing and hack defenders

Fixes some bugs. Adds some hack defenders.