I have a class called Hand and another class to test it.
Hand uses global variables and change their values with some methods
if in class test I create
The static keyword makes the variable class-scoped, not instance-scoped. That means the same value is common for all instances of the class. A non-static member is particular to every instance of the class. Remove the static keyword and you will get the desired behavior.