fix NPE, add connection state for pixelinvaders