Instead of repeating the whole string over and over again, you should only display the |/-\|/-\ characters.
_________________________
There are two types of vessels, submarines and targets.