added more logic for starting of game