Segfault on attack... I will replace some arrays y std::vectors.