/*
* Send battle initialisation packets
*/
TcpProtocolHandler.writeMessage(p1.getTcpSession(),
new BattleInitMessage(false, p2.getPartyCount()));
TcpProtocolHandler.writeMessage(p2.getTcpSession(),
new BattleInitMessage(false, p1.getPartyCount()));
/* Send the enemy's name to both players*/
p1.getTcpSession().write("bn" + p2.getName());
p2.getTcpSession().write("bn" + p1.getName());
/* Send pokemon data to both players */
sendPokemonData(p1, p2);