Fix init new deck- Counting encounter index out of bound
sorted deck wasn't initilaized

added more connection to viewlogic