Fixes type errors in Tetris