It sounds like you're suffering from a lack of good fats in your diet. Essential fats are absolutely critical and have everything to do with proper brain function. You might even try the Budwig flax oil, cottage cheese mixture to get fats into your system as soon as possible and make up for the deficiency.
Budwig believed cancer patients all had a depletion of good fats in their systems and came up with the blended cottage cheese/ flax seed oil recipe to remedy the depletion as quickly as possible. You might want to google Budwig or check the flax seed forum.
Of course oil pulling wouldn't hurt either - I do both.