added raw input as well as player control