implemented attack, added stuff to the rendering