It sounds like it could well be gout. Especially if the pain is intense and comes and goes. But the only way to be sure is for a Doctor to take some synovial fluids from the area in question. An anti-inflammatory injection is likely to help, although not completely stop the pain.