function returns number written on tile, color fix