Swap the two colours. This short puzzle game is also known as Lucas' problem.
Related: arrows, arrows games, lucas' problem, puzzle games, mind games