added silvio's code for new game