Lines and gems disappear now after chain.

I didn't test it thoroughly so there's probably a big bug somewhere.