fix

however c is not working… there are lines from one border to the
opposite one, which should be prevented by using the variable
„direction“