added check to play / pause player only if paused / playing respectively
recompile after fixes