Moved calcNewCoord() to Utils class