Part 2: Made changes according to Michael's suggestions

Made remaining stylistic improvements.
Used enum instead of int for board and lastMove
Part 3: Made changes according to Michael's suggestions

Used casin conventional to Vala.