Amana Dryer will not turn off

My dryer will dry the clothes and count down on the timer but will remain on 1 and will not turn off. It stays in the cool cycle while still running. I was told it does has a computer board. What could it possible be causing it to do this? Trying to do this as inexpensive as possible.