The collisions are working but i cant stop the player from moving to it. plz help i am trying this for 1 month. here is the whole code
import pygame import o