Fixed a spell bug

- Removed some redundant code.
- Fixed a bug that caused the player to be limited to casting spells up
to number 24. They can now cast higher number spells as well.