First version including player logic. Needs some fixes