started player implementation and a few bugfixes