Separate simulation thread and start of gui