Update gane.c

Some changes