Created player listener java class