Basic playing function finished.