added functionality for tracking players