Create PlayerStateListener.java