I added a while loop so that it iterates through turns rather than just having one turn then stopping. It doesn’t detect when either the player or enemy has won, but other than that it mostly works. Video:
After this my plan is to polish a few things, then make and release a few playable levels.