Added part1 (trymove) and its test cases.