Function Calls from UI to Gameplay