Put stuff in a separate function and testing my alphanumberical value assigning algorithm