It was probably a kingsnake or a rat snake. Both are harmless and good to have around to keep moles and mice away from your yard. Kingsnakes (see image below) also prey on venonous snakes. If you see any kind of snake that you can't identify, leave it alone. Back off slowly and give the animal an escape route. They are more afraid of you than you are of them. More images at