GE Fridge Made Clicking Sound Now Won't Cool

My GE fridge has been making a clicking sound for about a month. I notice the fan in the freezer will start and stop when it clicks until it will finally come on. The water/ice dispenser is also not working and when you hit it the lights on front will go out.

It has been working on and off but then last night it started making rapid clicking sounds and now it is silent will not cool in the fridge or freezer at all.

Looking through the forums I am trying to figure out if it just sounds like the motherboard or if the compressor might also be bad. Thanks for any help.