Added Troop class and redesigned cell texture cache