addition of printing function, simulation of getTileAt, placeTile and getDummy