fixed collision error, background class, implemented crude goal logic