Moved input logic into player