Fore & Aft

Your objective is to to reverse the positions of the red and blue pegs. You can only move pegs into the square which is empty. Moves need to be in the direction that the squares follow, with no diagonal moves permitted. You can move any peg which is adjacent to the empty square, or if you wish, you can jump over a single peg of any colour to reach the empty square.