Fixed state changes and added 0x00 null packet for state 1
Changes in con state, read state 2 packet 0x00. Moved main server object to global