Added attacking for player and major bug