Geralt was roaming through the woods when he saw an unusual hut. When he entered the hut, he saw a 5x5 grid in front of him on the ground as shown:

Suddenly the door behind him shut and a voice resonated from above: 'The grid in front of you has 25 identical white tiles. Below each tile is either a precious diamond or nothing. If you remove a tile, and find a diamond under it, you can keep the diamond and you will be given another chance to choose another tile. This would continue till you pick a tile that has nothing under it, or you quit. If you quit of your own will, you will be allowed to take the diamonds you have collected till then. But if you choose a tile that has nothing under it, all the diamonds you have collected till now will be gone, the game will be over.'
While the tiles were identical in all aspects, the voice provided 10 identical potions, which when used provide clues as to what lies underneath. To demonstrate the power of these potions, the mysterious voice chanted some incantations, and three potions flew and fell on 3 of the tiles. The tiles (1,3) (4,1) and (4,3) changed to Orange, Green and Blue respectively. Additionally, the tile (4,1) was embossed with a diamond symbol. The following 5 rules must be followed to use the potions:
1. Each potion needs to be poured completely over a tile. Then it would change the colour of the tile from white to one of the following colours:
a) Red: Of all the tiles touching the selected tile, only 1 of them has a diamond underneath.
b) Blue: Of all the tiles touching the selected tile, only 2 of them have a diamond underneath.
c) Yellow: Of all the tiles touching the selected tile, only 3 of them have a diamond underneath.
d) Green: Of all the tiles touching the selected tile, only 4 of them have a diamond underneath.
e) Orange: Of all the tiles touching the selected tile, only 5 of them have a diamond underneath.
(Touching a tile means a tile that touches its sides or corners. For example, (2,2) has 8 tiles touching it.)
2. The embossed diamond indicates that the tile contains a diamond beneath it and no embossing indicates the absence of diamond. However, if a potion is poured over a tile, that tile can no longer be selected by Geralt to be removed.
3. The potions can only be used on a tile where the result is NOT already known - i.e. whether the tile will be embossed or what the colour will be on pouring the potion. If Geralt uses the potion on a tile where he knows either the resulting colour or if it contains a diamond or not, then the game ends and Geralt loses all his diamonds.
4. When the potion is poured, the tile necessarily changes to one of the five mentioned colours.
The tiles are numbered as (i,j), where i is the row number and j is the column number. The leftmost, topmost tile is numbered (1,1). The row number increases downwards and the column number increases towards the right.