Mouse listener works properly. Point is assigned the correct value