made player to a subclass of texture