Working on Combat

Code is not waiting for player to select a target. Attempting to use
"setInterval" but it does not work.