changed edit to flip entire board, changed board to table, fixed selection in directive to be conditional to account for free square