Pergunta de entrevista da empresa Wix

implement pac-man game. the function will get board [[],[],[]] and moves: [F,T,F,T,T,F]