Nabe Bugyo Puzzle

The Nabe Bugyo is a person in charge of cooking and serving hotpot dish. In this puzzle, each Nabe Bugyo Samurai doesn't want to sit with any other Nabe Bugyo. The objective of this puzzle is to get all men sat on the same color table. If you touch a table, the men around it can sit on or get out of the table.