currentMouseLocation variable's initialization moved to while cycle
(Java optimization).