A Decomposition Algorithm for N-Player Games