Added collision detection to level loading