add ability to initialize player with spezific mainloop