Game and main done, atleast in pseudo code ish, not tested, need rest of program.