he can only collide with walls that correspond to the direction he's going I color coded everything for ease of use