adds direction to card building code