Added comments to the file and made some minor readability and operation changes, namely I changed the if statements to a switch case and made the board a boolean list instead of an integer list