Added ball collision with block detection