A new piece in chess has been introduced. Instead of being like the knight, which moves two spaces horizontally and one space vertically or two spaces vertically and one space horizontally, the new piece moves three spaces horizontally and one space vertically or three spaces vertically and one space horizontally.

The piece is now on the square labelled "A". What is the least number of moves it needs to have to get to the square labelled "B"?