Cleaned some pleymanager code