Added listener functions
Merge branch 'master' of github.com:lgp/chess