set up duck class

also moved coordinates to duck class