clicking on a direction makes the db entry true