Parse string to int in gameplay.js.

Signed-off-by: tungpham31 <tungpham31@gmail.com>