Add detection for collision with block.