game program with some minor changes