added method to check if grid is full