colision detects but with bug