Fixed win condition check. Added grid.