Added debug console, worked on battle engine