Bug fix - computer can win sometimes!

If starting nimvalue is 0, computer will win.
Code updated to reflect this fact.
Also added for_each useage.