Why invent the wheel? It was invented and improved many times before! There are a lot of existing strategies, that can be used as a basis, and the best ones of them can be adapted for your needs. It's way easier and faster, and possibly more effective.