Simplified packet writing
Different packets for different states, handle state transition to "login"