fixed clear method
wrote save method and added savefiles to .gitignore