Types: T: int, H: int, W: int, map: List[List[str]], actions: str  
Ranges: 1 ≤ T ≤ 100, 1 ≤ H, W ≤ 100, map[i][j] in {'.', '*', '#', '-', '^', 'v', '<', '>'}, actions in {'U', 'D', 'L', 'R', 'S'}  
Addtl Info: None