You have solved the problem by first counting the arrangements you don't want. This is a perfectly valid idea and often a simple way to do these problems, however I think in this case the direct approach will be easier.
First note that neither B nor G can occupy the centre square. So
* Choose a square for B. . . . . $6$ ways.
* Choose a square for G. . . . . $3$ ways
* Place the other $5$ blocks. . . . .$5!$ ways.
Answer, $3\times6\times5!=2160$.
Taking your approach, it seems to me that you are attempting to count things in the right way, but your actual numbers are wrong. It should be $7!-(6\times2\times5!+2\times6\times5!)$ which is also $2160$.