My Computer Keeps Shutting Itself Off

Someone brought this peice of work in and said my computer keeps shutting itself off for some reason.Opened it up and this is what was found no wonder!!Sometimes all it needs is a good cleaning!

computer keeps shutting off