main() prints moves to file