Make tile dir a command line parameter instead of hardcoded