partial implementation of self collision

not working because instance variable is not shared