Some of the codes i wrote were functioning but not in the way i wanted. Example of a bad code i wrote is the Markmine code, which marks a tile that has a mine under to avoid explosion. The marking opject's position depends on the character's position, which is hard to get it exactly in the centre of the tile, so the marking object does not alway appear in the perfect position to cover the tile.
Another bad code is the code i wrote for the winning criteria, as i wrote a code that only counts the number of the marking object without checking if the marked tile does have a mine or not.