Fix isOnGround stopping loop with "walls".