var directions = [0 /* Up */, 1 /* Down */, 2 /* Left */, 3 /* Right */];