Created functions.py

Added the player_input function