updated code to reflect proper game usage