Added wall collision testing