Save file and main menu

games can now be saved, also spells are working properly and won't crash
the game.