Added notifications and updating of ships to the damage action. Also cleaned up and prettified some functions in actions and map