added external walls and collision logic for them