added init() function to start/restart the game