Make sure to mask when casting byte to short in receiveBytes()