BattleScreen segmentation fault