What does it mean when your eyes hurt when you move them around?

My eyes hurt when i move them around. Side to side, up and to the sides and down to the sides. Could or be my allergies? I have been having a stopped up nose. What could it mean?