Fixed Minimap clicking

This resolves #30 by preventing overlapping on the click. Now corrects
the position if the click is going to be off the map.
Moved spell level up to utility.js

This resolves #29 by making a function that levels up the spell,
removing redundant code from every level up