working collision detection

buggy though