Added 2 new functions

1. checkPlayerState
2. weaponInvalid