Code to run an application which calculates the result for every player