add nim
add explanation of grundy number