remove flag
rename class
extract class to calculate moves for one square