task4: add constant for board size
task4: replace some for loops with list comprehensions
task4: improve some variable names
task4: wrap some long lines
Add docstrings to some methods