fixed bugs in turn calculations