Added winning condition and replenish energy and unit moves and attack