Added some flags
connection in gameactivity