# Match lost but when watched is a win

**URL:** <https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623>\
**Category:** Bugs\
**Created:** [April 29, 2021, 3:44pm UTC](https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623 "2021-04-29T15:44:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquim](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Joaquim](https://discourse.codecombat.com/u/Joaquim)\
**Post date:** [April 29, 2021, 3:44pm UTC](https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623/1 "2021-04-29T15:44:37Z")

</div>

**Continuing the discussion from [Infinite Inferno arena issues](https://discourse.codecombat.com/t/infinite-inferno-arena-issues/28249):**

I’m playing infinite inferno and i lose a lot of game but when i watch does games i win

---

<div class="post-metadata">

**Author:** ![thebagel](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/thebagel/32/22241_2.png) [@thebagel](https://discourse.codecombat.com/u/thebagel)\
**Post date:** [April 29, 2021, 4:15pm UTC](https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623/2 "2021-04-29T16:15:20Z")

</div>

Yes, i htink that is because you are playing on diff colours and it is possibleot have diff codes for diff colors (red aand blue)

---

<div class="post-metadata">

**Author:** ![Joaquim](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Joaquim](https://discourse.codecombat.com/u/Joaquim)\
**Post date:** [April 29, 2021, 5:04pm UTC](https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623/3 "2021-04-29T17:04:08Z")

</div>

> [@thebagel](#):
>
> htink that is because you are playing on diff colours and it is possibleot have diff codes for diff colors (red aand blue)

can you change color

---

<div class="post-metadata">

**Author:** ![RenegadePenguin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/renegadepenguin/32/21959_2.png) [@RenegadePenguin](https://discourse.codecombat.com/u/RenegadePenguin)\
**Post date:** [April 29, 2021, 7:57pm UTC](https://discourse.codecombat.com/t/match-lost-but-when-watched-is-a-win/28623/4 "2021-04-29T19:57:15Z")

</div>

As I said in my PSA post, if your code behaves differently based on whether you are watching it or not, there are 3 possibilities:

1. Your code assumes that you are always on the left
2. Your opponent’s code assumes they are always on the left
3. There’s some random factor changing it  
If your code moves to a specific x-coordinate, consider writing some code that can detect whether you are on the left or the right through something like the position of your hero.
