get not-losing-square out of 2 - refactor