Learning to Play Minigolf: A Dynamical System-based Approach