[FIX] account : Fixed the global name 'valid_moves' is not defined.