using pitchers and batter objects on JS game side