add ship destroy test, modify attack function to deal damage