I totally gave up

yesterday i tottaly gave up becouse I can't properly implement detection collison even if it is rectangle to rectangle collision detection. When player detect collision with wall there is a bug because player abruptly disapear.