Added dice button logic and made it work with player movement