Importing tile selection code