For the collision of the level instead of having collision boxes enclosing the level, I went for the opposite where you map out the valid squares you can walk on to avoid any werid collision bugs.