Fixed bug which caused the game to crash when selecting building cards