cleaned up human turn code a bit