Changed newGame to handle malloc returning a pointer