attempted to get 2 points, added rotation function etc