Changed player class to use prototypes and split into multiple files