changed x, y position into point
probably all changes in case of use Point class