Move pawns values outside function
Fix silly bug