Works, but not cleaned. Also bad_alloc in certain rotation
.
Works. Not clean, bad_alloc in certain rotation