Updated game input logic