By raii!
I think we can make an option about the placement of the arrows, which will make it more convenient for us to play.