fixed o being able to win when staring in the middle and fixed tests