REFACTORED: extracted the shield code of player 2 into the shield class