fixed eating glass bug, removed now-useless code