fixed bugs in Program, and Tank