changed update() updatePointPos() and added replacePoint()