The idea is good, but somethings the enemies doesn't attack and that ruins a lot of strategy. It woutld be better that they always attack rather than at random times. That way you can plan ahead instead of resorting to randomness.
You can polish this into a great game.