add basic collision checking, untested