added end game functionality and readied main function for turnin
finishing trash up