implemented hit count and invincibility frames