LOUISVILLE, Ky. (WDRB) -- Two Arizona parents were arrested last week after authorities say their 2-year-old child was found screaming and wandering alone while they were driving around town, playing Pokemon Go.

According to a news release from the Pinal County Sheriff's Office, the incident took place on Thursday, July 28, at 10:30 p.m., when someone called 911 reporting that she found a 2-year-old boy outside her neighbor's house, that no one was home and the child appeared to have been abandoned.

"Deputies arrived and found the child screaming and crying attempting to get into the residence," the news release stated. "The child was barefoot with only a diaper and a t-shirt on. The child was red faced, sweaty and dirty."

Authorities say the house was unlocked, so they searched the home, looking for adults. They found three dogs, but no people inside. According to the news release, they were able to determine that the child lived there through family pictures.

Deputies eventually found the phone number for 25-year-old Brent Daley, whom they believed to be the child's dad.

According to the news release, when they called Daley to tell him that his child had been found abandoned, Daley replied, "Whatever," before hanging up.

The Pinal County Sheriff's Office deputies say they had been at the home for about an hour before Brent Daley and 25-year-old Brianne Daley -- the child's mother -- showed up. Initially, they allegedly told officers they left the boy sleeping while they went out to get gas for their car.

But later, they explained their actual activities, according to the news release.

"The couple admitted they were away from the residence for up to 90 minutes playing the Pokemon Go smartphone game," said Pinal County Sheriff Paul Babeu, according to the news release. "They said they were driving around Sun Tan Valley, stopping at parks and other places to interact with the game."

The couple was arrested and charged with child endangerment and child neglect, according to the news release.

Copyright 2016 by WDRB News. All rights reserved.