added player functionality, fixed bug, added next ui functionality