Can work now but without proper Record class to record the placing log
Now I can do it with brute force search without out any pruning.