Added win logic to angular, refactored array to include objects.