Added functionality to 'new game' and 'exit'