change criteria for empty square according to api
pass all test cases for modules