implemented a complete button state input array to find moves