added victory and many minor bugfixes