- /* Cannot move if it's not this player's team's turn. */
- if (player.team !== this.state.next_player)
- {
- return { legal: false,
- message: "It's not your turn to move" };
- }
+ /* If the generic Game class can reject this move, then we don't
+ * need to look at it any further. */
+ if (! result.legal)
+ return result;