the battle ship game for programming class