Fixed bug on controlling game speed