created and called the isDead method to se of the character is too far to the left, in other words dead