made target's position a single object

the target class now holds its position in a single object (loc) that has an x,y position