Update Implement spells

added initial functionality for casting spells
neighbor calculation was completely broken

manually moving fixes over from my branch, hopefully nothing breaks
cont. This will break mapview for now.
tiny change
Merge branch 'master' into clif7786