Whirlpool dishwasher no power

So my dishwasher stopped working with water standing in the bottom and would no longer power on. I replaced the thermal fuse and that did not fix the problem. I started watching some videos and tested the door switch and one the microswitches inside of the door switch mechanism was bad. I went ahead and replaced both of the microswitches and the dishwasher came on. I ran a cycle and it appeared to be working fine until I started unloading it and noticed a considerable amount of water in the bottom again. The dishwasher is not powering on again. I tested the door switch and thermal fuse and both are getting power so I am not sure where to begin. It just seems odd that it worked for one cycle and now it wont power on at all. Any help would be greatly appreciated.