Tidied up game() function