Artificial Intelligence for resolving Nim game - Computer always win