Added battle phase layout init code