Win condition check added to controller