fixed the broken position calculations. now (x,y) is the center.
corrected the trigger weight for when it is not triggered.
fixed a bug where the triggers where always being triggered