Added getTileNum function