added AI_nim for the computer calculations

doesn't work yet :(