removed boardState field from method, and made it return void