Fixes #332 by checking to see if the game board item 'tags' is defined or not before using indexOf on it.