fixing obstacles and player depth