Collision of the player with the moving rectangles

The topic continues here:

:)