Here's basically how I have it set up
I have a class called World, which has a function called somethingPicked
somethingPicked defines a variable, Position, and then sends a message to the Coin class to execute a function flipCoin
in flipCoin I need to compare the variable Position to the variable r1, which is defined in the coin class.
How do I write it so that I can use the variable position from the World class in a comparison with the variable r1 from the coin class?