@bamdadd: refactoring winner function in grid