A Number Game

Maybe you know the game Mastermind. I used to play it with my dad, but at that time we used colour pins instead of numbers.
Even if you know it, there are different versions how you can play it. I made the more difficult one.

You have to guess five numbers, from 0 to 9.
You get hints every round. But the hints are not sorted to fit the order of your inputs. They are simply sorted green, orange, red.
Green is for a number you guessed correctly and put in the right spot in the number array.
Orange is for a number you guessed correctly, but is not in the right spot of the number array.
Red stands for a number you guessed that doesn't belong in the number array.

Numbers:

Your Input: