now engine without segfaults
Add visualisation for testing purposes