Created custom functions and classes files

These files will hold most if not all classes and fucntions required in the game so the main file is not cluttered. I have put some functions already in the file and made it compatible with the new GUI program