@bangner 
CC @Ricar7o 
Please use  The Ternary Operator ?
player == 1 ?  @player1.record_won_ball! : @player1.record_won_ball! 
it is one line of  Code.
Thank you