Method for detecting eye misalignment based on movement near the center of the pupil