collision detection now detects directions,