Update mainCode

Added diagonal methods
slideUpRight still does not work; something is wrong with assignment of temp array values